package com.feign.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import com.service.base.ResponseResult;
import com.service.bean.Device;

@FeignClient(name = "service-zuul")
public interface DeviceClient {
   
	@RequestMapping(value = "/api-device/device/getDeviceList", method = RequestMethod.POST)
	ResponseResult getPage(@RequestBody Device device,
			@RequestParam("pageNumber") Integer pageNumber,
			@RequestParam("pageSize") Integer pageSize);
	
	@RequestMapping(value = "/api-device/device/updateDevice", method = RequestMethod.POST)
	ResponseResult updateDevice(@RequestBody Device device);
	
	@RequestMapping(value = "/api-device/device/register", method = RequestMethod.POST)
	ResponseResult register(@RequestParam("ids")Integer[] ids,@RequestParam("typeId") Integer typeId);
}
